3.557 \(\int \frac {\sec ^2(c+d x)}{(a+b \tan (c+d x))^2} \, dx\)

Optimal. Leaf size=20 \[ -\frac {1}{b d (a+b \tan (c+d x))} \]

[Out]

-1/b/d/(a+b*tan(d*x+c))

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3506, 32} \[ -\frac {1}{b d (a+b \tan (c+d x))} \]

Antiderivative was successfully verified.

[In]

Int[Sec[c + d*x]^2/(a + b*Tan[c + d*x])^2,x]

[Out]

-(1/(b*d*(a + b*Tan[c + d*x])))

Rule 32

Int[((a_.) + (b_.)*(x_))^(m_), x_Symbol] :> Simp[(a + b*x)^(m + 1)/(b*(m + 1)), x] /; FreeQ[{a, b, m}, x] && N
eQ[m, -1]

Rule 3506

Int[sec[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Dist[1/(b*f), Subst
[Int[(a + x)^n*(1 + x^2/b^2)^(m/2 - 1), x], x, b*Tan[e + f*x]], x] /; FreeQ[{a, b, e, f, n}, x] && NeQ[a^2 + b
^2, 0] && IntegerQ[m/2]

Rubi steps

\begin {align*} \int \frac {\sec ^2(c+d x)}{(a+b \tan (c+d x))^2} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {1}{(a+x)^2} \, dx,x,b \tan (c+d x)\right )}{b d}\\ &=-\frac {1}{b d (a+b \tan (c+d x))}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.05, size = 32, normalized size = 1.60 \[ \frac {\sin (c+d x)}{a d (a \cos (c+d x)+b \sin (c+d x))} \]

Antiderivative was successfully verified.

[In]

Integrate[Sec[c + d*x]^2/(a + b*Tan[c + d*x])^2,x]

[Out]

Sin[c + d*x]/(a*d*(a*Cos[c + d*x] + b*Sin[c + d*x]))

________________________________________________________________________________________

fricas [B]  time = 0.72, size = 57, normalized size = 2.85 \[ -\frac {b \cos \left (d x + c\right ) - a \sin \left (d x + c\right )}{{\left (a^{3} + a b^{2}\right )} d \cos \left (d x + c\right ) + {\left (a^{2} b + b^{3}\right )} d \sin \left (d x + c\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^2/(a+b*tan(d*x+c))^2,x, algorithm="fricas")

[Out]

-(b*cos(d*x + c) - a*sin(d*x + c))/((a^3 + a*b^2)*d*cos(d*x + c) + (a^2*b + b^3)*d*sin(d*x + c))

________________________________________________________________________________________

giac [A]  time = 4.90, size = 20, normalized size = 1.00 \[ -\frac {1}{{\left (b \tan \left (d x + c\right ) + a\right )} b d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^2/(a+b*tan(d*x+c))^2,x, algorithm="giac")

[Out]

-1/((b*tan(d*x + c) + a)*b*d)

________________________________________________________________________________________

maple [A]  time = 0.33, size = 21, normalized size = 1.05 \[ -\frac {1}{b d \left (a +b \tan \left (d x +c \right )\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(d*x+c)^2/(a+b*tan(d*x+c))^2,x)

[Out]

-1/b/d/(a+b*tan(d*x+c))

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 20, normalized size = 1.00 \[ -\frac {1}{{\left (b \tan \left (d x + c\right ) + a\right )} b d} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)^2/(a+b*tan(d*x+c))^2,x, algorithm="maxima")

[Out]

-1/((b*tan(d*x + c) + a)*b*d)

________________________________________________________________________________________

mupad [B]  time = 3.65, size = 20, normalized size = 1.00 \[ -\frac {1}{b\,d\,\left (a+b\,\mathrm {tan}\left (c+d\,x\right )\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(cos(c + d*x)^2*(a + b*tan(c + d*x))^2),x)

[Out]

-1/(b*d*(a + b*tan(c + d*x)))

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec ^{2}{\left (c + d x \right )}}{\left (a + b \tan {\left (c + d x \right )}\right )^{2}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(d*x+c)**2/(a+b*tan(d*x+c))**2,x)

[Out]

Integral(sec(c + d*x)**2/(a + b*tan(c + d*x))**2, x)

________________________________________________________________________________________